import sequelize from "../../db/dbConnext";
import { option } from "../../db/commomConfig";
import { DataTypes } from "sequelize";

import SlideshowEntity from "../../../entities/HomePage/SlideshowEntity";
export type ISlideshow = Omit<SlideshowEntity, "validateThis">;

const SlideshowModel = sequelize.define<any, ISlideshow>(
  "slidesshow",
  {
    imgUrl: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    companyId: {
      type: DataTypes.STRING,
      allowNull: true,
    },
  },
  option
);
export default SlideshowModel;
